package com.learn.springboot.controller.page;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author wangxing
 * @version 2020/8/3 11:12 Administrator
 */
@Controller
public class IndexController {
    @RequestMapping("/")
    public String index(ModelMap modelMap){
        modelMap.addAttribute("name","wangxing");
        modelMap.addAttribute("message","hello");
        return  "index";
    }
}
